home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / callback.001 / callback~ / callback / lib / parser / biflex / parser.tab.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-23  |  36.9 KB  |  1,343 lines

  1.  
  2. /*  A Bison parser, made from parser with Bison version GNU Bison version 1.22
  3.   */
  4.  
  5. #define YYBISON 1  /* Identify Bison output.  */
  6.  
  7. #define    USERS    258
  8. #define    LINE    259
  9. #define    IDENTIFIER    260
  10. #define    DESTINATIONS    261
  11. #define    NUMBER    262
  12. #define    DIRECT    263
  13. #define    EXTRA    264
  14. #define    USING    265
  15. #define    PATH    266
  16. #define    MGETTYCONFIG    267
  17. #define    MODEMBASE    268
  18. #define    LOGIN    269
  19. #define    EMAIL    270
  20. #define    PANICLOG    271
  21. #define    LOGFILE    272
  22. #define    RETRY    273
  23. #define    SHOWNUMS    274
  24. #define    CALL    275
  25. #define    LOG    276
  26. #define    ON    277
  27. #define    DEFAULT    278
  28. #define    OFF    279
  29. #define    MAX    280
  30. #define    MAXTIME    281
  31. #define    MODE    282
  32. #define    CALLBACK    283
  33. #define    DIALIN    284
  34. #define    NODESTINATIONS    285
  35. #define    DIALLOG    286
  36. #define    TTYNR    287
  37.  
  38. #line 1 "parser"
  39.  
  40.     #include "parser.p"
  41.  
  42. #ifndef YYLTYPE
  43. typedef
  44.   struct yyltype
  45.     {
  46.       int timestamp;
  47.       int first_line;
  48.       int first_column;
  49.       int last_line;
  50.       int last_column;
  51.       char *text;
  52.    }
  53.   yyltype;
  54.  
  55. #define YYLTYPE yyltype
  56. #endif
  57.  
  58. #ifndef YYSTYPE
  59. #define YYSTYPE int
  60. #endif
  61. #include <stdio.h>
  62.  
  63. #ifndef __cplusplus
  64. #ifndef __STDC__
  65. #define const
  66. #endif
  67. #endif
  68.  
  69.  
  70.  
  71. #define    YYFINAL        169
  72. #define    YYFLAG        -32768
  73. #define    YYNTBASE    35
  74.  
  75. #define YYTRANSLATE(x) ((unsigned)(x) <= 287 ? yytranslate[x] : 114)
  76.  
  77. static const char yytranslate[] = {     0,
  78.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  79.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  80.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  81.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  82.      2,     2,     2,    33,     2,     2,     2,     2,     2,     2,
  83.      2,     2,     2,     2,     2,     2,     2,    34,     2,     2,
  84.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  85.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  86.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  87.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  88.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  89.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  90.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  91.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  92.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  93.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  94.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  95.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  96.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  97.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  98.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  99.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  100.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  101.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  102.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  103.      2,     2,     2,     2,     2,     1,     2,     3,     4,     5,
  104.      6,     7,     8,     9,    10,    11,    12,    13,    14,    15,
  105.     16,    17,    18,    19,    20,    21,    22,    23,    24,    25,
  106.     26,    27,    28,    29,    30,    31,    32
  107. };
  108.  
  109. #if YYDEBUG != 0
  110. static const short yyprhs[] = {     0,
  111.      0,     4,     9,    12,    14,    16,    18,    21,    23,    25,
  112.     27,    29,    31,    33,    35,    37,    39,    41,    43,    45,
  113.     47,    49,    51,    53,    55,    57,    59,    61,    65,    67,
  114.     69,    71,    72,    75,    77,    79,    83,    85,    87,    88,
  115.     91,    95,    97,    98,   101,   105,   107,   108,   111,   115,
  116.    117,   118,   121,   125,   127,   128,   131,   133,   135,   137,
  117.    139,   140,   145,   147,   148,   151,   152,   157,   159,   160,
  118.    163,   167,   169,   170,   173,   177,   179,   180,   183,   184,
  119.    189,   192,   194,   196,   200,   202,   203,   206,   210,   213,
  120.    215,   219,   220,   223,   225,   226,   231,   233,   235,   236,
  121.    239,   243,   246,   248,   249,   255,   257,   258,   261,   263,
  122.    264,   267,   269,   271,   273,   274,   277,   278,   282,   285,
  123.    286,   288,   289,   292,   293
  124. };
  125.  
  126. static const short yyrhs[] = {    27,
  127.    112,    36,     0,    37,    39,    97,    88,     0,    38,    39,
  128.      0,    28,     0,    29,     0,    40,     0,    40,    41,     0,
  129.     41,     0,    81,     0,    85,     0,    78,     0,    75,     0,
  130.     67,     0,    71,     0,    66,     0,    60,     0,    57,     0,
  131.     54,     0,    51,     0,    47,     0,    42,     0,    43,     0,
  132.     63,     0,    64,     0,    65,     0,     1,     0,    20,     0,
  133.     21,   112,    44,     0,    46,     0,    23,     0,    25,     0,
  134.      0,    45,     1,     0,    22,     0,    24,     0,    48,   112,
  135.     49,     0,    14,     0,     5,     0,     0,    50,     1,     0,
  136.     15,   112,    52,     0,     5,     0,     0,    53,     1,     0,
  137.     31,   112,    55,     0,     5,     0,     0,    56,     1,     0,
  138.     17,   112,    58,     0,     5,     0,     0,    59,     1,     0,
  139.     16,   112,    61,     0,     5,     0,     0,    62,     1,     0,
  140.      9,     0,     8,     0,    30,     0,    19,     0,     0,    18,
  141.     68,   112,    69,     0,     7,     0,     0,    70,     1,     0,
  142.      0,    26,    72,   112,    73,     0,     7,     0,     0,    74,
  143.      1,     0,    13,   112,    76,     0,     5,     0,     0,    77,
  144.      1,     0,    12,   112,    79,     0,     5,     0,     0,    80,
  145.      1,     0,     0,     4,   112,    82,    83,     0,    83,    84,
  146.      0,    84,     0,    32,     0,    11,   112,    86,     0,     5,
  147.      0,     0,    87,     1,     0,     3,   112,    89,     0,    89,
  148.     90,     0,    90,     0,    92,   112,    93,     0,     0,    91,
  149.      1,     0,     5,     0,     0,    93,    94,    33,    95,     0,
  150.     95,     0,     5,     0,     0,    96,     1,     0,     6,   112,
  151.     98,     0,    98,    99,     0,    99,     0,     0,   101,   100,
  152.     34,   103,   105,     0,     5,     0,     0,   102,     1,     0,
  153.      5,     0,     0,   104,     1,     0,     8,     0,     9,     0,
  154.    107,     0,     0,   106,     1,     0,     0,     7,   108,   109,
  155.      0,    10,   110,     0,     0,     5,     0,     0,   111,     1,
  156.      0,     0,   113,    34,     0
  157. };
  158.  
  159. #endif
  160.  
  161. #if YYDEBUG != 0
  162. static const short yyrline[] = { 0,
  163.     12,    17,    22,    27,    34,    41,    48,    51,    55,    57,
  164.     59,    61,    63,    65,    67,    69,    71,    73,    75,    77,
  165.     79,    81,    83,    85,    87,    89,    93,   102,   108,   113,
  166.    118,   123,   128,   130,   135,   142,   148,   156,   162,   167,
  167.    169,   175,   181,   186,   188,   194,   200,   205,   207,   213,
  168.    219,   224,   226,   232,   238,   243,   245,   251,   257,   263,
  169.    271,   278,   280,   286,   291,   293,   300,   302,   308,   313,
  170.    315,   321,   327,   332,   334,   340,   346,   351,   354,   361,
  171.    364,   367,   371,   383,   389,   395,   400,   402,   408,   411,
  172.    415,   419,   424,   426,   433,   439,   440,   444,   449,   454,
  173.    456,   462,   465,   469,   475,   479,   484,   489,   491,   496,
  174.    501,   503,   508,   513,   515,   520,   522,   529,   532,   535,
  175.    539,   544,   549,   551,   556
  176. };
  177.  
  178. static const char * const yytname[] = {   "$","error","$illegal.","USERS","LINE",
  179. "IDENTIFIER","DESTINATIONS","NUMBER","DIRECT","EXTRA","USING","PATH","MGETTYCONFIG",
  180. "MODEMBASE","LOGIN","EMAIL","PANICLOG","LOGFILE","RETRY","SHOWNUMS","CALL","LOG",
  181. "ON","DEFAULT","OFF","MAX","MAXTIME","MODE","CALLBACK","DIALIN","NODESTINATIONS",
  182. "DIALLOG","TTYNR","','","':'","input","modetype","callback","dialin","defaultlist",
  183. "defaults","default","call","logtype","logvalue","@1","on_off","login","login_keyword",
  184. "loginprog","@2","email","address","@3","diallogfile","diallog","@4","logfile",
  185. "log","@5","paniclog","panic","@6","showextra","showdirect","nodestinations",
  186. "shownums","retry","@7","nretries","@8","maxage","@9","maxtime","@10","modembase",
  187. "modem","@11","gettydefault","mgetty","@12","linesection","@13","ttylines","ttyline",
  188. "pathsection","pathname","@14","usersection","users","user","@15","username",
  189. "grouplist","@16","group","@17","destinationsection","destinations","destination",
  190. "@18","dgroup","@19","dname","@20","dphone","@21","phone_number","@22","opt_file",
  191. "filename","@23","colon","@24",""
  192. };
  193. #endif
  194.  
  195. static const short yyr1[] = {     0,
  196.     35,    36,    36,    37,    38,    39,    40,    40,    41,    41,
  197.     41,    41,    41,    41,    41,    41,    41,    41,    41,    41,
  198.     41,    41,    41,    41,    41,    41,    42,    43,    44,    44,
  199.     44,    45,    44,    46,    46,    47,    48,    49,    50,    49,
  200.     51,    52,    53,    52,    54,    55,    56,    55,    57,    58,
  201.     59,    58,    60,    61,    62,    61,    63,    64,    65,    66,
  202.     68,    67,    69,    70,    69,    72,    71,    73,    74,    73,
  203.     75,    76,    77,    76,    78,    79,    80,    79,    82,    81,
  204.     83,    83,    84,    85,    86,    87,    86,    88,    89,    89,
  205.     90,    91,    90,    92,    94,    93,    93,    95,    96,    95,
  206.     97,    98,    98,   100,    99,   101,   102,   101,   103,   104,
  207.    103,   105,   105,   105,   106,   105,   108,   107,   109,   109,
  208.    110,   111,   110,   113,   112
  209. };
  210.  
  211. static const short yyr2[] = {     0,
  212.      3,     4,     2,     1,     1,     1,     2,     1,     1,     1,
  213.      1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
  214.      1,     1,     1,     1,     1,     1,     1,     3,     1,     1,
  215.      1,     0,     2,     1,     1,     3,     1,     1,     0,     2,
  216.      3,     1,     0,     2,     3,     1,     0,     2,     3,     1,
  217.      0,     2,     3,     1,     0,     2,     1,     1,     1,     1,
  218.      0,     4,     1,     0,     2,     0,     4,     1,     0,     2,
  219.      3,     1,     0,     2,     3,     1,     0,     2,     0,     4,
  220.      2,     1,     1,     3,     1,     0,     2,     3,     2,     1,
  221.      3,     0,     2,     1,     0,     4,     1,     1,     0,     2,
  222.      3,     2,     1,     0,     5,     1,     0,     2,     1,     0,
  223.      2,     1,     1,     1,     0,     2,     0,     3,     2,     0,
  224.      1,     0,     2,     0,     2
  225. };
  226.  
  227. static const short yydefact[] = {     0,
  228.    124,     0,     0,     4,     5,     1,     0,     0,   125,    26,
  229.    124,    58,    57,   124,   124,   124,    37,   124,   124,   124,
  230.     61,    60,    27,   124,    66,    59,   124,     0,     0,     8,
  231.     21,    22,    20,   124,    19,    18,    17,    16,    23,    24,
  232.     25,    15,    13,    14,    12,    11,     9,    10,     3,    79,
  233.     86,    77,    73,    43,    55,    51,   124,    32,   124,    47,
  234.    124,     0,     7,    39,     0,    85,    84,     0,    76,    75,
  235.      0,    72,    71,     0,    42,    41,     0,    54,    53,     0,
  236.     50,    49,     0,    64,    34,    30,    35,    31,    28,     0,
  237.     29,    69,    46,    45,     0,   107,   124,     2,    38,    36,
  238.      0,    83,    80,    82,    87,    78,    74,    44,    56,    52,
  239.     63,    62,     0,    33,    68,    67,     0,    48,   106,   101,
  240.    103,   104,     0,    92,    40,    81,    65,    70,   102,     0,
  241.    108,    94,    88,    90,     0,   124,   110,    89,    93,    99,
  242.    109,   115,     0,    98,    91,    97,     0,   117,   112,   113,
  243.    105,     0,   114,   111,     0,   100,   120,   116,    99,   122,
  244.    118,    96,   121,   119,     0,   123,     0,     0,     0
  245. };
  246.  
  247. static const short yydefgoto[] = {   167,
  248.      6,     7,     8,    28,    29,    30,    31,    32,    89,    90,
  249.     91,    33,    34,   100,   101,    35,    76,    77,    36,    94,
  250.     95,    37,    82,    83,    38,    79,    80,    39,    40,    41,
  251.     42,    43,    57,   112,   113,    44,    59,   116,   117,    45,
  252.     73,    74,    46,    70,    71,    47,    65,   103,   104,    48,
  253.     67,    68,    98,   133,   134,   135,   136,   145,   155,   146,
  254.    147,    62,   120,   121,   130,   122,   123,   142,   143,   151,
  255.    152,   153,   157,   161,   164,   165,     2,     3
  256. };
  257.  
  258. static const short yypact[] = {   -26,
  259. -32768,   -17,   -19,-32768,-32768,-32768,    52,    52,-32768,-32768,
  260. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  261. -32768,-32768,-32768,-32768,-32768,-32768,-32768,    18,    21,-32768,
  262. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  263. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  264.     23,    26,    44,    49,    50,    53,-32768,    -5,-32768,    54,
  265. -32768,    59,-32768,    69,    -6,-32768,-32768,    56,-32768,-32768,
  266.     74,-32768,-32768,    75,-32768,-32768,    76,-32768,-32768,    78,
  267. -32768,-32768,    79,    77,-32768,-32768,-32768,-32768,-32768,    80,
  268. -32768,    81,-32768,-32768,    84,    82,-32768,-32768,-32768,-32768,
  269.     88,-32768,    -6,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  270. -32768,-32768,    89,-32768,-32768,-32768,    90,-32768,-32768,     1,
  271. -32768,-32768,    91,    92,-32768,-32768,-32768,-32768,-32768,    60,
  272. -32768,-32768,     9,-32768,    94,-32768,    93,-32768,-32768,    95,
  273. -32768,    36,    98,-32768,    63,-32768,   100,-32768,-32768,-32768,
  274. -32768,   101,-32768,-32768,    70,-32768,    83,-32768,    95,    99,
  275. -32768,-32768,-32768,-32768,   104,-32768,   106,   107,-32768
  276. };
  277.  
  278. static const short yypgoto[] = {-32768,
  279. -32768,-32768,-32768,   102,-32768,    85,-32768,-32768,-32768,-32768,
  280. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  281. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  282. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  283. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,     5,-32768,
  284. -32768,-32768,-32768,-32768,   -24,-32768,-32768,-32768,-32768,   -48,
  285. -32768,-32768,-32768,    -8,-32768,-32768,-32768,-32768,-32768,-32768,
  286. -32768,-32768,-32768,-32768,-32768,-32768,   -11,-32768
  287. };
  288.  
  289.  
  290. #define    YYLAST        125
  291.  
  292.  
  293. static const short yytable[] = {    50,
  294.      1,  -107,    51,    52,    53,   119,    54,    55,    56,   -92,
  295.      4,     5,    58,   132,     9,    60,    85,    86,    87,    88,
  296.     -6,    10,    64,    61,    11,   102,    -6,    66,    12,    13,
  297.     69,    14,    15,    16,    17,    18,    19,    20,    21,    22,
  298.     23,    24,   148,   149,   150,    84,    25,    92,    72,    96,
  299.     26,    27,    10,    75,    78,    11,   105,    81,    93,    12,
  300.     13,    97,    14,    15,    16,    17,    18,    19,    20,    21,
  301.     22,    23,    24,    99,   106,   107,   108,    25,   109,   110,
  302.    114,    26,    27,   111,   118,   124,   119,   115,   125,   127,
  303.    128,   131,   160,   137,   139,   -95,   132,   141,   154,   144,
  304.    156,   158,   159,   163,   166,   168,   169,   126,   138,    49,
  305.    162,   129,     0,    63,     0,     0,     0,     0,     0,     0,
  306.      0,     0,     0,     0,   140
  307. };
  308.  
  309. static const short yycheck[] = {    11,
  310.     27,     1,    14,    15,    16,     5,    18,    19,    20,     1,
  311.     28,    29,    24,     5,    34,    27,    22,    23,    24,    25,
  312.      0,     1,    34,     6,     4,    32,     6,     5,     8,     9,
  313.      5,    11,    12,    13,    14,    15,    16,    17,    18,    19,
  314.     20,    21,     7,     8,     9,    57,    26,    59,     5,    61,
  315.     30,    31,     1,     5,     5,     4,     1,     5,     5,     8,
  316.      9,     3,    11,    12,    13,    14,    15,    16,    17,    18,
  317.     19,    20,    21,     5,     1,     1,     1,    26,     1,     1,
  318.      1,    30,    31,     7,     1,    97,     5,     7,     1,     1,
  319.      1,     1,    10,    34,     1,    33,     5,     5,     1,     5,
  320.      1,     1,    33,     5,     1,     0,     0,   103,   133,     8,
  321.    159,   120,    -1,    29,    -1,    -1,    -1,    -1,    -1,    -1,
  322.     -1,    -1,    -1,    -1,   136
  323. };
  324. /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
  325. #line 3 "/usr/lib/bison.simple"
  326.  
  327. /* Skeleton output parser for bison,
  328.    Copyright (C) 1984, 1989, 1990 Bob Corbett and Richard Stallman
  329.  
  330.    This program is free software; you can redistribute it and/or modify
  331.    it under the terms of the GNU General Public License as published by
  332.    the Free Software Foundation; either version 1, or (at your option)
  333.    any later version.
  334.  
  335.    This program is distributed in the hope that it will be useful,
  336.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  337.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  338.    GNU General Public License for more details.
  339.  
  340.    You should have received a copy of the GNU General Public License
  341.    along with this program; if not, write to the Free Software
  342.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  343.  
  344.  
  345. #ifndef alloca
  346. #ifdef __GNUC__
  347. #define alloca __builtin_alloca
  348. #else /* not GNU C.  */
  349. #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
  350. #include <alloca.h>
  351. #else /* not sparc */
  352. #if defined (MSDOS) && !defined (__TURBOC__)
  353. #include <malloc.h>
  354. #else /* not MSDOS, or __TURBOC__ */
  355. #if defined(_AIX)
  356. #include <malloc.h>
  357.  #pragma alloca
  358. #else /* not MSDOS, __TURBOC__, or _AIX */
  359. #ifdef __hpux
  360. #ifdef __cplusplus
  361. extern "C" {
  362. void *alloca (unsigned int);
  363. };
  364. #else /* not __cplusplus */
  365. void *alloca ();
  366. #endif /* not __cplusplus */
  367. #endif /* __hpux */
  368. #endif /* not _AIX */
  369. #endif /* not MSDOS, or __TURBOC__ */
  370. #endif /* not sparc.  */
  371. #endif /* not GNU C.  */
  372. #endif /* alloca not defined.  */
  373.  
  374. /* This is the parser code that is written into each bison parser
  375.   when the %semantic_parser declaration is not specified in the grammar.
  376.   It was written by Richard Stallman by simplifying the hairy parser
  377.   used when %semantic_parser is specified.  */
  378.  
  379. /* Note: there must be only one dollar sign in this file.
  380.    It is replaced by the list of actions, each action
  381.    as one case of the switch.  */
  382.  
  383. #define yyerrok        (yyerrstatus = 0)
  384. #define yyclearin    (yychar = YYEMPTY)
  385. #define YYEMPTY        -2
  386. #define YYEOF        0
  387. #define YYACCEPT    return(0)
  388. #define YYABORT     return(1)
  389. #define YYERROR        goto yyerrlab1
  390. /* Like YYERROR except do call yyerror.
  391.    This remains here temporarily to ease the
  392.    transition to the new meaning of YYERROR, for GCC.
  393.    Once GCC version 2 has supplanted version 1, this can go.  */
  394. #define YYFAIL        goto yyerrlab
  395. #define YYRECOVERING()  (!!yyerrstatus)
  396. #define YYBACKUP(token, value) \
  397. do                                \
  398.   if (yychar == YYEMPTY && yylen == 1)                \
  399.     { yychar = (token), yylval = (value);            \
  400.       yychar1 = YYTRANSLATE (yychar);                \
  401.       YYPOPSTACK;                        \
  402.       goto yybackup;                        \
  403.     }                                \
  404.   else                                \
  405.     { yyerror ("syntax error: cannot back up"); YYERROR; }    \
  406. while (0)
  407.  
  408. #define YYTERROR    1
  409. #define YYERRCODE    256
  410.  
  411. #ifndef YYPURE
  412. #define YYLEX        yylex()
  413. #endif
  414.  
  415. #ifdef YYPURE
  416. #ifdef YYLSP_NEEDED
  417. #define YYLEX        yylex(&yylval, &yylloc)
  418. #else
  419. #define YYLEX        yylex(&yylval)
  420. #endif
  421. #endif
  422.  
  423. /* If nonreentrant, generate the variables here */
  424.  
  425. #ifndef YYPURE
  426.  
  427. int    yychar;            /*  the lookahead symbol        */
  428. YYSTYPE    yylval;            /*  the semantic value of the        */
  429.                 /*  lookahead symbol            */
  430.  
  431. #ifdef YYLSP_NEEDED
  432. YYLTYPE yylloc;            /*  location data for the lookahead    */
  433.                 /*  symbol                */
  434. #endif
  435.  
  436. int yynerrs;            /*  number of parse errors so far       */
  437. #endif  /* not YYPURE */
  438.  
  439. #if YYDEBUG != 0
  440. int yydebug;            /*  nonzero means print parse trace    */
  441. /* Since this is uninitialized, it does not stop multiple parsers
  442.    from coexisting.  */
  443. #endif
  444.  
  445. /*  YYINITDEPTH indicates the initial size of the parser's stacks    */
  446.  
  447. #ifndef    YYINITDEPTH
  448. #define YYINITDEPTH 200
  449. #endif
  450.  
  451. /*  YYMAXDEPTH is the maximum size the stacks can grow to
  452.     (effective only if the built-in stack extension method is used).  */
  453.  
  454. #if YYMAXDEPTH == 0
  455. #undef YYMAXDEPTH
  456. #endif
  457.  
  458. #ifndef YYMAXDEPTH
  459. #define YYMAXDEPTH 10000
  460. #endif
  461.  
  462. /* Prevent warning if -Wstrict-prototypes.  */
  463. #ifdef __GNUC__
  464. int yyparse (void);
  465. #endif
  466.  
  467. #if __GNUC__ > 1        /* GNU C and GNU C++ define this.  */
  468. #define __yy_bcopy(FROM,TO,COUNT)    __builtin_memcpy(TO,FROM,COUNT)
  469. #else                /* not GNU C or C++ */
  470. #ifndef __cplusplus
  471.  
  472. /* This is the most reliable way to avoid incompatibilities
  473.    in available built-in functions on various systems.  */
  474. static void
  475. __yy_bcopy (from, to, count)
  476.      char *from;
  477.      char *to;
  478.      int count;
  479. {
  480.   register char *f = from;
  481.   register char *t = to;
  482.   register int i = count;
  483.  
  484.   while (i-- > 0)
  485.     *t++ = *f++;
  486. }
  487.  
  488. #else /* __cplusplus */
  489.  
  490. /* This is the most reliable way to avoid incompatibilities
  491.    in available built-in functions on various systems.  */
  492. static void
  493. __yy_bcopy (char *from, char *to, int count)
  494. {
  495.   register char *f = from;
  496.   register char *t = to;
  497.   register int i = count;
  498.  
  499.   while (i-- > 0)
  500.     *t++ = *f++;
  501. }
  502.  
  503. #endif
  504. #endif
  505.  
  506. #line 184 "/usr/lib/bison.simple"
  507. int
  508. yyparse()
  509. {
  510.   register int yystate;
  511.   register int yyn;
  512.   register short *yyssp;
  513.   register YYSTYPE *yyvsp;
  514.   int yyerrstatus;    /*  number of tokens to shift before error messages enabled */
  515.   int yychar1 = 0;        /*  lookahead token as an internal (translated) token number */
  516.  
  517.   short    yyssa[YYINITDEPTH];    /*  the state stack            */
  518.   YYSTYPE yyvsa[YYINITDEPTH];    /*  the semantic value stack        */
  519.  
  520.   short *yyss = yyssa;        /*  refer to the stacks thru separate pointers */
  521.   YYSTYPE *yyvs = yyvsa;    /*  to allow yyoverflow to reallocate them elsewhere */
  522.  
  523. #ifdef YYLSP_NEEDED
  524.   YYLTYPE yylsa[YYINITDEPTH];    /*  the location stack            */
  525.   YYLTYPE *yyls = yylsa;
  526.   YYLTYPE *yylsp;
  527.  
  528. #define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
  529. #else
  530. #define YYPOPSTACK   (yyvsp--, yyssp--)
  531. #endif
  532.  
  533.   int yystacksize = YYINITDEPTH;
  534.  
  535. #ifdef YYPURE
  536.   int yychar;
  537.   YYSTYPE yylval;
  538.   int yynerrs;
  539. #ifdef YYLSP_NEEDED
  540.   YYLTYPE yylloc;
  541. #endif
  542. #endif
  543.  
  544.   YYSTYPE yyval;        /*  the variable used to return        */
  545.                 /*  semantic values from the action    */
  546.                 /*  routines                */
  547.  
  548.   int yylen;
  549.  
  550. #if YYDEBUG != 0
  551.   if (yydebug)
  552.     fprintf(stderr, "Starting parse\n");
  553. #endif
  554.  
  555.   yystate = 0;
  556.   yyerrstatus = 0;
  557.   yynerrs = 0;
  558.   yychar = YYEMPTY;        /* Cause a token to be read.  */
  559.  
  560.   /* Initialize stack pointers.
  561.      Waste one element of value and location stack
  562.      so that they stay on the same level as the state stack.
  563.      The wasted elements are never initialized.  */
  564.  
  565.   yyssp = yyss - 1;
  566.   yyvsp = yyvs;
  567. #ifdef YYLSP_NEEDED
  568.   yylsp = yyls;
  569. #endif
  570.  
  571. /* Push a new state, which is found in  yystate  .  */
  572. /* In all cases, when you get here, the value and location stacks
  573.    have just been pushed. so pushing a state here evens the stacks.  */
  574. yynewstate:
  575.  
  576.   *++yyssp = yystate;
  577.  
  578.   if (yyssp >= yyss + yystacksize - 1)
  579.     {
  580.       /* Give user a chance to reallocate the stack */
  581.       /* Use copies of these so that the &'s don't force the real ones into memory. */
  582.       YYSTYPE *yyvs1 = yyvs;
  583.       short *yyss1 = yyss;
  584. #ifdef YYLSP_NEEDED
  585.       YYLTYPE *yyls1 = yyls;
  586. #endif
  587.  
  588.       /* Get the current used size of the three stacks, in elements.  */
  589.       int size = yyssp - yyss + 1;
  590.  
  591. #ifdef yyoverflow
  592.       /* Each stack pointer address is followed by the size of
  593.      the data in use in that stack, in bytes.  */
  594. #ifdef YYLSP_NEEDED
  595.       /* This used to be a conditional around just the two extra args,
  596.      but that might be undefined if yyoverflow is a macro.  */
  597.       yyoverflow("parser stack overflow",
  598.          &yyss1, size * sizeof (*yyssp),
  599.          &yyvs1, size * sizeof (*yyvsp),
  600.          &yyls1, size * sizeof (*yylsp),
  601.          &yystacksize);
  602. #else
  603.       yyoverflow("parser stack overflow",
  604.          &yyss1, size * sizeof (*yyssp),
  605.          &yyvs1, size * sizeof (*yyvsp),
  606.          &yystacksize);
  607. #endif
  608.  
  609.       yyss = yyss1; yyvs = yyvs1;
  610. #ifdef YYLSP_NEEDED
  611.       yyls = yyls1;
  612. #endif
  613. #else /* no yyoverflow */
  614.       /* Extend the stack our own way.  */
  615.       if (yystacksize >= YYMAXDEPTH)
  616.     {
  617.       yyerror("parser stack overflow");
  618.       return 2;
  619.     }
  620.       yystacksize *= 2;
  621.       if (yystacksize > YYMAXDEPTH)
  622.     yystacksize = YYMAXDEPTH;
  623.       yyss = (short *) alloca (yystacksize * sizeof (*yyssp));
  624.       __yy_bcopy ((char *)yyss1, (char *)yyss, size * sizeof (*yyssp));
  625.       yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
  626.       __yy_bcopy ((char *)yyvs1, (char *)yyvs, size * sizeof (*yyvsp));
  627. #ifdef YYLSP_NEEDED
  628.       yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
  629.       __yy_bcopy ((char *)yyls1, (char *)yyls, size * sizeof (*yylsp));
  630. #endif
  631. #endif /* no yyoverflow */
  632.  
  633.       yyssp = yyss + size - 1;
  634.       yyvsp = yyvs + size - 1;
  635. #ifdef YYLSP_NEEDED
  636.       yylsp = yyls + size - 1;
  637. #endif
  638.  
  639. #if YYDEBUG != 0
  640.       if (yydebug)
  641.     fprintf(stderr, "Stack size increased to %d\n", yystacksize);
  642. #endif
  643.  
  644.       if (yyssp >= yyss + yystacksize - 1)
  645.     YYABORT;
  646.     }
  647.  
  648. #if YYDEBUG != 0
  649.   if (yydebug)
  650.     fprintf(stderr, "Entering state %d\n", yystate);
  651. #endif
  652.  
  653.   goto yybackup;
  654.  yybackup:
  655.  
  656. /* Do appropriate processing given the current state.  */
  657. /* Read a lookahead token if we need one and don't already have one.  */
  658. /* yyresume: */
  659.  
  660.   /* First try to decide what to do without reference to lookahead token.  */
  661.  
  662.   yyn = yypact[yystate];
  663.   if (yyn == YYFLAG)
  664.     goto yydefault;
  665.  
  666.   /* Not known => get a lookahead token if don't already have one.  */
  667.  
  668.   /* yychar is either YYEMPTY or YYEOF
  669.      or a valid token in external form.  */
  670.  
  671.   if (yychar == YYEMPTY)
  672.     {
  673. #if YYDEBUG != 0
  674.       if (yydebug)
  675.     fprintf(stderr, "Reading a token: ");
  676. #endif
  677.       yychar = YYLEX;
  678.     }
  679.  
  680.   /* Convert token to internal form (in yychar1) for indexing tables with */
  681.  
  682.   if (yychar <= 0)        /* This means end of input. */
  683.     {
  684.       yychar1 = 0;
  685.       yychar = YYEOF;        /* Don't call YYLEX any more */
  686.  
  687. #if YYDEBUG != 0
  688.       if (yydebug)
  689.     fprintf(stderr, "Now at end of input.\n");
  690. #endif
  691.     }
  692.   else
  693.     {
  694.       yychar1 = YYTRANSLATE(yychar);
  695.  
  696. #if YYDEBUG != 0
  697.       if (yydebug)
  698.     {
  699.       fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
  700.       /* Give the individual parser a way to print the precise meaning
  701.          of a token, for further debugging info.  */
  702. #ifdef YYPRINT
  703.       YYPRINT (stderr, yychar, yylval);
  704. #endif
  705.       fprintf (stderr, ")\n");
  706.     }
  707. #endif
  708.     }
  709.  
  710.   yyn += yychar1;
  711.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
  712.     goto yydefault;
  713.  
  714.   yyn = yytable[yyn];
  715.  
  716.   /* yyn is what to do for this token type in this state.
  717.      Negative => reduce, -yyn is rule number.
  718.      Positive => shift, yyn is new state.
  719.        New state is final state => don't bother to shift,
  720.        just return success.
  721.      0, or most negative number => error.  */
  722.  
  723.   if (yyn < 0)
  724.     {
  725.       if (yyn == YYFLAG)
  726.     goto yyerrlab;
  727.       yyn = -yyn;
  728.       goto yyreduce;
  729.     }
  730.   else if (yyn == 0)
  731.     goto yyerrlab;
  732.  
  733.   if (yyn == YYFINAL)
  734.     YYACCEPT;
  735.  
  736.   /* Shift the lookahead token.  */
  737.  
  738. #if YYDEBUG != 0
  739.   if (yydebug)
  740.     fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
  741. #endif
  742.  
  743.   /* Discard the token being shifted unless it is eof.  */
  744.   if (yychar != YYEOF)
  745.     yychar = YYEMPTY;
  746.  
  747.   *++yyvsp = yylval;
  748. #ifdef YYLSP_NEEDED
  749.   *++yylsp = yylloc;
  750. #endif
  751.  
  752.   /* count tokens shifted since error; after three, turn off error status.  */
  753.   if (yyerrstatus) yyerrstatus--;
  754.  
  755.   yystate = yyn;
  756.   goto yynewstate;
  757.  
  758. /* Do the default action for the current state.  */
  759. yydefault:
  760.  
  761.   yyn = yydefact[yystate];
  762.   if (yyn == 0)
  763.     goto yyerrlab;
  764.  
  765. /* Do a reduction.  yyn is the number of a rule to reduce with.  */
  766. yyreduce:
  767.   yylen = yyr2[yyn];
  768.   if (yylen > 0)
  769.     yyval = yyvsp[1-yylen]; /* implement default value of the action */
  770.  
  771. #if YYDEBUG != 0
  772.   if (yydebug)
  773.     {
  774.       int i;
  775.  
  776.       fprintf (stderr, "Reducing via rule %d (line %d), ",
  777.            yyn, yyrline[yyn]);
  778.  
  779.       /* Print the symbols being reduced, and their result.  */
  780.       for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
  781.     fprintf (stderr, "%s ", yytname[yyrhs[i]]);
  782.       fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
  783.     }
  784. #endif
  785.  
  786.  
  787.   switch (yyn) {
  788.  
  789. case 4:
  790. #line 29 "parser"
  791. {
  792.         setmode(mode_callback);
  793.     ;
  794.     break;}
  795. case 5:
  796. #line 36 "parser"
  797. {
  798.         setmode(mode_dialin);
  799.     ;
  800.     break;}
  801. case 6:
  802. #line 43 "parser"
  803. {
  804.         checkconfig();  /* check the configuration of the setup file */
  805.     ;
  806.     break;}
  807. case 27:
  808. #line 95 "parser"
  809. {
  810.         if (getmode() != mode_callback)
  811.             yysemantic("'call' only valid for mode callback");
  812.         setcall();
  813.     ;
  814.     break;}
  815. case 29:
  816. #line 110 "parser"
  817. {
  818.         setlog((LOG_TYPE_)yyvsp[0]);
  819.     ;
  820.     break;}
  821. case 30:
  822. #line 115 "parser"
  823. {
  824.         setlog(log_default);
  825.     ;
  826.     break;}
  827. case 31:
  828. #line 120 "parser"
  829. {
  830.         setlog(log_max);
  831.     ;
  832.     break;}
  833. case 32:
  834. #line 124 "parser"
  835. {
  836.         expect = "log type (on, off, or default)";
  837.     ;
  838.     break;}
  839. case 34:
  840. #line 132 "parser"
  841. {
  842.         yyval = (int)log_on;
  843.     ;
  844.     break;}
  845. case 35:
  846. #line 137 "parser"
  847. {
  848.         yyval = (int)log_off;
  849.     ;
  850.     break;}
  851. case 37:
  852. #line 150 "parser"
  853. {
  854.         if (getmode() != mode_callback)
  855.             yysemantic("'login: ...' only valid for mode callback");
  856.     ;
  857.     break;}
  858. case 38:
  859. #line 158 "parser"
  860. {
  861.         setloginprogram(yytext);
  862.         expect = "default setting or 'destinations'";
  863.     ;
  864.     break;}
  865. case 39:
  866. #line 163 "parser"
  867. {
  868.         expect = "login programname";
  869.     ;
  870.     break;}
  871. case 42:
  872. #line 177 "parser"
  873. {
  874.         setemailaddress(yytext);
  875.         expect = "default setting or 'destinations'";
  876.     ;
  877.     break;}
  878. case 43:
  879. #line 182 "parser"
  880. {
  881.         expect = "e-mail address";
  882.     ;
  883.     break;}
  884. case 46:
  885. #line 196 "parser"
  886. {
  887.         setdiallogfilename(yytext);
  888.         expect = "default setting or 'destinations'";
  889.     ;
  890.     break;}
  891. case 47:
  892. #line 201 "parser"
  893. {
  894.         expect = "dial-logfilename";
  895.     ;
  896.     break;}
  897. case 50:
  898. #line 215 "parser"
  899. {
  900.         setlogfilename(yytext);
  901.         expect = "default setting or 'destinations'";
  902.     ;
  903.     break;}
  904. case 51:
  905. #line 220 "parser"
  906. {
  907.         expect = "logfilename";
  908.     ;
  909.     break;}
  910. case 54:
  911. #line 234 "parser"
  912. {
  913.         setpanicfilename(yytext);
  914.         expect = "default setting or 'destinations'";
  915.     ;
  916.     break;}
  917. case 55:
  918. #line 239 "parser"
  919. {
  920.         expect = "panic-logfilename";
  921.     ;
  922.     break;}
  923. case 57:
  924. #line 247 "parser"
  925. {
  926.         showextra();
  927.     ;
  928.     break;}
  929. case 58:
  930. #line 253 "parser"
  931. {
  932.         showdirect();
  933.     ;
  934.     break;}
  935. case 59:
  936. #line 259 "parser"
  937. {
  938.         hidedestinations();
  939.     ;
  940.     break;}
  941. case 60:
  942. #line 265 "parser"
  943. {
  944.         if (getmode() != mode_callback)
  945.             yysemantic("'phonenumbers' only valid for mode callback");
  946.         showphonenumbers();
  947.     ;
  948.     break;}
  949. case 61:
  950. #line 273 "parser"
  951. {
  952.         if (getmode() != mode_callback)
  953.             yysemantic("'retry' only valid for mode callback");
  954.     ;
  955.     break;}
  956. case 63:
  957. #line 282 "parser"
  958. {
  959.         setntries(yytext);
  960.         expect = "default setting or 'destinations'";
  961.     ;
  962.     break;}
  963. case 64:
  964. #line 287 "parser"
  965. {
  966.         expect = "Maximum callback retries expected";
  967.     ;
  968.     break;}
  969. case 66:
  970. #line 295 "parser"
  971. {
  972.         if (getmode() != mode_callback)
  973.             yysemantic("'maxtime' only valid for mode callback");
  974.     ;
  975.     break;}
  976. case 68:
  977. #line 304 "parser"
  978. {
  979.         set_maxage(yytext);
  980.         expect = "default setting or 'destinations'";
  981.     ;
  982.     break;}
  983. case 69:
  984. #line 309 "parser"
  985. {
  986.         expect = "Maximum callback time expected";
  987.     ;
  988.     break;}
  989. case 72:
  990. #line 323 "parser"
  991. {
  992.         setmodembase(yytext);
  993.         expect = "default setting or 'destinations'";
  994.     ;
  995.     break;}
  996. case 73:
  997. #line 328 "parser"
  998. {
  999.         expect = "modem_getty specification";
  1000.     ;
  1001.     break;}
  1002. case 76:
  1003. #line 342 "parser"
  1004. {
  1005.         setmgettypath(yytext);
  1006.         expect = "default setting or 'destinations'";
  1007.     ;
  1008.     break;}
  1009. case 77:
  1010. #line 347 "parser"
  1011. {
  1012.         expect = "getty-configuration filename";
  1013.     ;
  1014.     break;}
  1015. case 79:
  1016. #line 357 "parser"
  1017. {
  1018.         expect = "ttyS<nr> line";
  1019.     ;
  1020.     break;}
  1021. case 83:
  1022. #line 373 "parser"
  1023. {
  1024.         settyline(yytext);
  1025.         expect = "ttyS<nr> line or 'destinations'";
  1026.     ;
  1027.     break;}
  1028. case 85:
  1029. #line 391 "parser"
  1030. {
  1031.         setbase(yytext);
  1032.         expect = "default setting or 'destinations'";
  1033.     ;
  1034.     break;}
  1035. case 86:
  1036. #line 396 "parser"
  1037. {
  1038.         expect = "Callback path";
  1039.     ;
  1040.     break;}
  1041. case 92:
  1042. #line 420 "parser"
  1043. {
  1044.         expect = "username";
  1045.     ;
  1046.     break;}
  1047. case 94:
  1048. #line 428 "parser"
  1049. {
  1050.         define_user(yytext);
  1051.     ;
  1052.     break;}
  1053. case 95:
  1054. #line 435 "parser"
  1055. {
  1056.         expect = "','";
  1057.     ;
  1058.     break;}
  1059. case 98:
  1060. #line 446 "parser"
  1061. {
  1062.         addgroup(yytext);
  1063.     ;
  1064.     break;}
  1065. case 99:
  1066. #line 450 "parser"
  1067. {
  1068.         expect = "groupname";
  1069.     ;
  1070.     break;}
  1071. case 104:
  1072. #line 471 "parser"
  1073. {
  1074.         expect = "earlier 'using' or ':'";
  1075.     ;
  1076.     break;}
  1077. case 106:
  1078. #line 481 "parser"
  1079. {
  1080.         define_dest(yytext);
  1081.     ;
  1082.     break;}
  1083. case 107:
  1084. #line 485 "parser"
  1085. {
  1086.         expect = "dest. name";
  1087.     ;
  1088.     break;}
  1089. case 109:
  1090. #line 493 "parser"
  1091. {
  1092.         set_dname(yytext);
  1093.     ;
  1094.     break;}
  1095. case 110:
  1096. #line 497 "parser"
  1097. {
  1098.         expect = "destination name";
  1099.     ;
  1100.     break;}
  1101. case 112:
  1102. #line 505 "parser"
  1103. {
  1104.         set_cbmode(direct_mode);
  1105.     ;
  1106.     break;}
  1107. case 113:
  1108. #line 510 "parser"
  1109. {
  1110.         set_cbmode(extra_mode);
  1111.     ;
  1112.     break;}
  1113. case 115:
  1114. #line 516 "parser"
  1115. {
  1116.         expect = "'direct', 'extra', or phonenumber";
  1117.     ;
  1118.     break;}
  1119. case 117:
  1120. #line 524 "parser"
  1121. {
  1122.         set_phone(yytext);
  1123.         expect = "'using' or groupname";
  1124.     ;
  1125.     break;}
  1126. case 121:
  1127. #line 541 "parser"
  1128. {
  1129.         set_file(yytext);
  1130.     ;
  1131.     break;}
  1132. case 122:
  1133. #line 545 "parser"
  1134. {
  1135.         expect = "filename";
  1136.     ;
  1137.     break;}
  1138. case 124:
  1139. #line 552 "parser"
  1140. {
  1141.         expect = "':'";
  1142.     ;
  1143.     break;}
  1144. }
  1145.    /* the action file gets copied in in place of this dollarsign */
  1146. #line 465 "/usr/lib/bison.simple"
  1147.  
  1148.   yyvsp -= yylen;
  1149.   yyssp -= yylen;
  1150. #ifdef YYLSP_NEEDED
  1151.   yylsp -= yylen;
  1152. #endif
  1153.  
  1154. #if YYDEBUG != 0
  1155.   if (yydebug)
  1156.     {
  1157.       short *ssp1 = yyss - 1;
  1158.       fprintf (stderr, "state stack now");
  1159.       while (ssp1 != yyssp)
  1160.     fprintf (stderr, " %d", *++ssp1);
  1161.       fprintf (stderr, "\n");
  1162.     }
  1163. #endif
  1164.  
  1165.   *++yyvsp = yyval;
  1166.  
  1167. #ifdef YYLSP_NEEDED
  1168.   yylsp++;
  1169.   if (yylen == 0)
  1170.     {
  1171.       yylsp->first_line = yylloc.first_line;
  1172.       yylsp->first_column = yylloc.first_column;
  1173.       yylsp->last_line = (yylsp-1)->last_line;
  1174.       yylsp->last_column = (yylsp-1)->last_column;
  1175.       yylsp->text = 0;
  1176.     }
  1177.   else
  1178.     {
  1179.       yylsp->last_line = (yylsp+yylen-1)->last_line;
  1180.       yylsp->last_column = (yylsp+yylen-1)->last_column;
  1181.     }
  1182. #endif
  1183.  
  1184.   /* Now "shift" the result of the reduction.
  1185.      Determine what state that goes to,
  1186.      based on the state we popped back to
  1187.      and the rule number reduced by.  */
  1188.  
  1189.   yyn = yyr1[yyn];
  1190.  
  1191.   yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  1192.   if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  1193.     yystate = yytable[yystate];
  1194.   else
  1195.     yystate = yydefgoto[yyn - YYNTBASE];
  1196.  
  1197.   goto yynewstate;
  1198.  
  1199. yyerrlab:   /* here on detecting error */
  1200.  
  1201.   if (! yyerrstatus)
  1202.     /* If not already recovering from an error, report this error.  */
  1203.     {
  1204.       ++yynerrs;
  1205.  
  1206. #ifdef YYERROR_VERBOSE
  1207.       yyn = yypact[yystate];
  1208.  
  1209.       if (yyn > YYFLAG && yyn < YYLAST)
  1210.     {
  1211.       int size = 0;
  1212.       char *msg;
  1213.       int x, count;
  1214.  
  1215.       count = 0;
  1216.       /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */
  1217.       for (x = (yyn < 0 ? -yyn : 0);
  1218.            x < (sizeof(yytname) / sizeof(char *)); x++)
  1219.         if (yycheck[x + yyn] == x)
  1220.           size += strlen(yytname[x]) + 15, count++;
  1221.       msg = (char *) malloc(size + 15);
  1222.       if (msg != 0)
  1223.         {
  1224.           strcpy(msg, "parse error");
  1225.  
  1226.           if (count < 5)
  1227.         {
  1228.           count = 0;
  1229.           for (x = (yyn < 0 ? -yyn : 0);
  1230.                x < (sizeof(yytname) / sizeof(char *)); x++)
  1231.             if (yycheck[x + yyn] == x)
  1232.               {
  1233.             strcat(msg, count == 0 ? ", expecting `" : " or `");
  1234.             strcat(msg, yytname[x]);
  1235.             strcat(msg, "'");
  1236.             count++;
  1237.               }
  1238.         }
  1239.           yyerror(msg);
  1240.           free(msg);
  1241.         }
  1242.       else
  1243.         yyerror ("parse error; also virtual memory exceeded");
  1244.     }
  1245.       else
  1246. #endif /* YYERROR_VERBOSE */
  1247.     yyerror("parse error");
  1248.     }
  1249.  
  1250.   goto yyerrlab1;
  1251. yyerrlab1:   /* here on error raised explicitly by an action */
  1252.  
  1253.   if (yyerrstatus == 3)
  1254.     {
  1255.       /* if just tried and failed to reuse lookahead token after an error, discard it.  */
  1256.  
  1257.       /* return failure if at end of input */
  1258.       if (yychar == YYEOF)
  1259.     YYABORT;
  1260.  
  1261. #if YYDEBUG != 0
  1262.       if (yydebug)
  1263.     fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
  1264. #endif
  1265.  
  1266.       yychar = YYEMPTY;
  1267.     }
  1268.  
  1269.   /* Else will try to reuse lookahead token
  1270.      after shifting the error token.  */
  1271.  
  1272.   yyerrstatus = 3;        /* Each real token shifted decrements this */
  1273.  
  1274.   goto yyerrhandle;
  1275.  
  1276. yyerrdefault:  /* current state does not do anything special for the error token. */
  1277.  
  1278. #if 0
  1279.   /* This is wrong; only states that explicitly want error tokens
  1280.      should shift them.  */
  1281.   yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  1282.   if (yyn) goto yydefault;
  1283. #endif
  1284.  
  1285. yyerrpop:   /* pop the current state because it cannot handle the error token */
  1286.  
  1287.   if (yyssp == yyss) YYABORT;
  1288.   yyvsp--;
  1289.   yystate = *--yyssp;
  1290. #ifdef YYLSP_NEEDED
  1291.   yylsp--;
  1292. #endif
  1293.  
  1294. #if YYDEBUG != 0
  1295.   if (yydebug)
  1296.     {
  1297.       short *ssp1 = yyss - 1;
  1298.       fprintf (stderr, "Error: state stack now");
  1299.       while (ssp1 != yyssp)
  1300.     fprintf (stderr, " %d", *++ssp1);
  1301.       fprintf (stderr, "\n");
  1302.     }
  1303. #endif
  1304.  
  1305. yyerrhandle:
  1306.  
  1307.   yyn = yypact[yystate];
  1308.   if (yyn == YYFLAG)
  1309.     goto yyerrdefault;
  1310.  
  1311.   yyn += YYTERROR;
  1312.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
  1313.     goto yyerrdefault;
  1314.  
  1315.   yyn = yytable[yyn];
  1316.   if (yyn < 0)
  1317.     {
  1318.       if (yyn == YYFLAG)
  1319.     goto yyerrpop;
  1320.       yyn = -yyn;
  1321.       goto yyreduce;
  1322.     }
  1323.   else if (yyn == 0)
  1324.     goto yyerrpop;
  1325.  
  1326.   if (yyn == YYFINAL)
  1327.     YYACCEPT;
  1328.  
  1329. #if YYDEBUG != 0
  1330.   if (yydebug)
  1331.     fprintf(stderr, "Shifting error token, ");
  1332. #endif
  1333.  
  1334.   *++yyvsp = yylval;
  1335. #ifdef YYLSP_NEEDED
  1336.   *++yylsp = yylloc;
  1337. #endif
  1338.  
  1339.   yystate = yyn;
  1340.   goto yynewstate;
  1341. }
  1342. #line 557 "parser"
  1343.